#ifndef SBOXUSER_H
#define SBOXUSER_H

#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1

#include <iostream>
#include <rsa.h>
#include <..\include\md5.h>
#include <QString>
#include <QtSql>
#include <QFile>
#include <string>
#include <fstream>
#include "sqlconn.h"
#include "iterhash.h"
#include "files.h"
#include "randpool.h"
#include "hex.h"
#include "base64.h"
#include "osrng.h"

using namespace  std;
using namespace CryptoPP;

#pragma comment(lib, "cryptlib.lib")

class SBoxUser
{

public:
    SBoxUser(QString ,QString , QString );
    void updateUser();
    void generateID();
    void createUser();

private:
    QString usrname;
    QString pwd;
    string strPriv;
    string strPub;
    int id;
    QString mail;
    sqlConn *con;

private:
    void getUserID();
};

#endif // SBOXUSER_H
